package com.dsdl.chatapp.data.source;

import android.support.annotation.NonNull;

import com.dsdl.chatapp.data.ChatMsg;
import com.dsdl.chatapp.data.SocketMessage;

/**
 * Created by zzg on 2016/8/26.
 * 聊天数据层接口
 */
public interface ChatDataSource {
    interface SendMsgCallBack{
        void start();
        void sending();
        void success();
        void end();
    }

    void saveMsg(@NonNull SocketMessage chatMsg);

    void deleteMsg(@NonNull SocketMessage chatMsg);

    void deleteAllMsg(String userId);

    void loadOffLineMsg(String userId);
}
